@extends('layout.app') @section('content')

<div class="box-body">

    <table id="rowed3"></table>
    <div id="prowed3"></div>

</div>

<script>
    $(document).ready(function() {

        var data = {
            url: "/log/gold/goldorder",
            colNames: [ '时间', '用户Id', '', '增加后元宝', '获得元宝', '说明' , '类型'],
            colModel: [{
                name: 'ope_time',
                formatter:'date',
                formatoptions: {srcformat: 'Y-m-d H:i:s', newformat: 'Y-m-d H:i:s'},
                searchoptions: {
                    sopt: ['lt', 'le', 'gt', 'ge'],
                    dataInit : function (elem) {
                        $(elem).datepicker({
                            dateFormat: 'yy-mm-dd',
                            monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
                            dayNamesMin: ['日','一','二','三','四','五','六'] });
                    }
                }
            }, {
                name: 'userid'
            }, {
                name: 'pre',
                sortable: false
            }, {
                name: 'after',
                sortable: false
            }, {
                name: 'count',
                formatter: function(cellvalue) {
                    if (cellvalue > 0) {
                    	return '<span class="text-success"></i> +' + cellvalue + '</span>';
                    } else {
                    	return '<span class="text-danger"></i> ' + cellvalue + '</span>';
                    }
                }
            }, {
                name: 'desc',
                align: 'left',
                sortable: false,
                search: false
            }, {
                name: 'invoker',
                sortable: false,
                search: false
            }],
            caption: '<i class="fa fa-table"></i> {{$label2}}',
            sortname: 'id',
            sortorder: "desc",
        };

        jqGrid(data);
    });

</script>

@endsection